﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RazakiSite.UserControls.New
{
    public partial class UCNewsList : BaseUserControl
    {
        public UCNewsList()
        {
            //default value
            AllowCreateNew = true;
        }

        public IList Data { get; set; }

        public bool AllowCreateNew { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            DataListTag.DataSource = Data;
            DataListTag.DataBind();
        }
    }
}